import PageLayout from './components/layouts/PageLayout.vue'

let routers = [
	{
		path: '/',
		name: '主页',
		component: () => import('./components/layouts/GlobalLayout.vue'),
		redirect: '/swagger/info',
		children: [
			{
				path: '/doc',
				name: '文档管理',
				component: PageLayout,
				children: [
					{
						path: '/swagger/info',
						name: '文档信息',
						meta: {
							icon: 'FileTextOutlined'
						},
						component: () => import('./views/swagger/DocInfo.vue')
					},
					{
						path: '/swagger/view',
						name: '文档展示',
						component: () => import('./views/swagger/DocView.vue')
					},
				]
			},
		]
	},
]
export default routers;
